package com.cqie.secondhandtransaction.service;

import com.cqie.secondhandtransaction.DTO.DataList;
import com.cqie.secondhandtransaction.DTO.OrderDTO;
import com.cqie.secondhandtransaction.DTO.OrderInfoVO;
import com.cqie.secondhandtransaction.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gdy
 * @since 2025-02-10
 */
public interface OrderInfoService extends IService<OrderInfo> {

    DataList<OrderInfoVO> orderList(String status, boolean isSeller);

    void startOrder(OrderDTO dto);

    void pay(String orderCode, BigDecimal price);

    void deleteOrder(String orderCode);

    void updateOrderStatus(OrderDTO dto);
}
